package com.ship.dispatch.mapper.boats;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.common.datasource.annotation.Slave;
import com.ship.dispatch.bean.BoatsAisMessage;
import com.ship.dispatch.bean.boats.info.QueryAisInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BoatsAisMessageMapper extends BaseMapper<BoatsAisMessage> {
    @Slave
    String queryTableName(@Param("tableName") String tableName);

    @Slave
    List<QueryAisInfo> queryAisByShipName(@Param("shipName") String shipName,
                                          @Param("imo") String imo,
                                          @Param("startTime") String startTime,
                                          @Param("endTime") String endTime,
                                          @Param("tableName") String tableName);
}
